package com.leokok.jts.learning.jts.core.geom;

import org.junit.Test;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.PrecisionModel;

/**
 * 精度设定
 */
public class PrecisionModelTest {


    @Test
    public void precisionModel(){
        PrecisionModel precisionModel = new PrecisionModel(1000);

        Coordinate c = new Coordinate(116.345678,32.456788);

        precisionModel.makePrecise(c);

        System.out.println(c);
    }

}
